name = "xiaohei is a handsome person"
num = 0
for x in name:
    print(x)
    if x == "a":
        num += 1
print(f"这个语句一共有{num}个a")
